export default function drawPic (circledata) {
  var option = {
    tooltip: {
      trigger: 'item',
      formatter: '{b} : {c} ({d}%)'
    },
    grid: {
      left: '3%',
      right: '4%',
      bottom: '8%',
      top: '0%',
      containLabel: true
    },
    color: circledata.color,
    series: [
      {
        // name: '脆弱性监测情况',
        type: 'pie',
        radius: '55%',
        center: ['50%', '50%'],
        data: circledata.itemWarning,

        itemStyle: {
          emphasis: {
            shadowBlur: 10,
            shadowOffsetX: 0,
            shadowColor: 'rgba(0, 0, 0, 0)'
          }
        },
        label: {
          normal: {
            formatter: '{b|{b} }{c} {per|{d}%}',
            color: '#798299',
            fontSize: 12,
            rich: {
              b: {
                color: '#798299'
              },
              per: {
                padding: [2, 4],
                color: '#798299'
              }
            }
          }
        }
      }
    ]
  }
  return option
}
